package com.apexsoft.assets.base.utils;

public class AccessPermissionUtil {
    public static final String ACCESS_PERMISSION_CODES="AccessPermissionCodes";

    public static boolean hasAccess(String accessCode){
        return true;

        /*if(UserSession.getUserSession()!=null && "0".equals(UserSession.getUserSession().getUserId())){
            return true;
        }
        if(UserSession.getRequestHolder()!=null && UserSession.getRequestHolder().getSession()!=null){
            Object accessPermissionCodeList = UserSession.getRequestHolder().getSession().getAttribute(ACCESS_PERMISSION_CODES);
            if(accessPermissionCodeList instanceof HashSet
                    && ((HashSet<String>)accessPermissionCodeList).contains(accessCode)){
                return true;
            }
        }
        return false;*/
    }
}
